Text

??=[entries.text]

The simplest form of text in diagrams is set with the || command:
\begin{code}
\diagram
\text{Program} \rto & \text{Code}
\enddiagram
\end{code}
will typeset

$\displaystyle \docode$

If your text contains several centered lines, you can use || instead:
\begin{code}
\diagram
\Text{A very long and stupid\\ program}
\rrto^-{\Text{weird\\ arrow}}
&& \Text<2pc>{Com\-pli\-cated\\ Code}
\enddiagram
\end{code}
will typeset

$\displaystyle \NoCompileAllDiagrams$$\displaystyle \docode$

which illustrates that || and || can also be used to format labels; in particular notice how the |-| place specifier is useful in this context. Lines will be broken where you have specified |
| and if they are longer than any TEX dimension specified in |<>|s between || and the text in ||s.
In "v3" many variations are allowed, provided the DVI-driver can support them. This includes rotation and scaling of text.